/* ---------------- 全局 Reset ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #root {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
    background-color: #f5f5f5;
    color: #1f1f1f;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ---------------- 滚动条样式 ---------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* ---------------- 链接、列表、按钮 ---------------- */
a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* ---------------- UnoCSS 相关 ---------------- */
body {
    @apply font-sans text-base;
}

/* ---------------- 暗黑模式 ---------------- */
body.dark {
    background-color: #1e1e1e;
    color: #dcdcdc;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 1000;
    user-select: none;
}

.main-container {
    display: flex;
    height: calc(100vh - 60px); /* 留出顶部 Header 空间 */
    margin-top: 60px; /* 留出顶部 Header 空间 */
}

.side-menu-scrollable {
    width: 130px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    border-right: 1px solid #f0f0f0;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
}

body.dark .content-container {
    background-color: #252525;
}
